import request from '@/utils/request'

export function queryLivingAllowances(listQuery) {
  return request({
    url: '/living-allowances/search/page',
    method: 'get',
    params: {
      current: listQuery.page,
      size: listQuery.size,
      areaCode: listQuery.areaCode,
      status: listQuery.status,
      startTime: listQuery.startTime,
      endTime: listQuery.endTime,
      remindFlag: listQuery.remindFlag,
      householdType: listQuery.householdType,
      approvalKey: listQuery.approvalKey
    }
  })
}

export function queryES(listQuery) {
  return request({
    url: '/educational-support/search/page',
    method: 'get',
    params: {
      current: listQuery.page,
      size: listQuery.size,
      areaCode: listQuery.areaCode,
      status: listQuery.status,
      startTime: listQuery.startTime,
      endTime: listQuery.endTime,
      householdType: listQuery.householdType
    }
  })
}

export function exportLaExcel(listQuery){
  return request({
    url: '/living-allowances/search/export',
    method: 'get',
    params: {
      areaCode: listQuery.areaCode,
      status: listQuery.status,
      startTime: listQuery.startTime,
      endTime: listQuery.endTime,
      remindFlag: listQuery.remindFlag,
      householdType: listQuery.householdType,
      xlsx: listQuery.xlsx
    }
  })
}

export function exportLaMemberExcel(listQuery){
  return request({
    url: '/living-allowances/search/member-export',
    method: 'get',
    params: {
      areaCode: listQuery.areaCode,
      status: listQuery.status,
      startTime: listQuery.startTime,
      endTime: listQuery.endTime,
      remindFlag: listQuery.remindFlag,
      householdType: listQuery.householdType,
      xlsx: listQuery.xlsx
    }
  })
}

//低保发放
export function laGive(listQuery){
  return request({
    url: '/living-allowances/search/give',
    method: 'post',
    params: {
      areaCode: listQuery.areaCode,
      status: listQuery.status,
      startTime: listQuery.startTime,
      endTime: listQuery.endTime,
      remindFlag: listQuery.remindFlag,
      householdType: listQuery.householdType,
      approvalKey: listQuery.approvalKey
    }
  })
}

//教育救助发放
export function esGive(listQuery){
  return request({
    url: 'educational-support/search/give',
    method: 'get',
    params: {
      areaCode: listQuery.areaCode,
      status: listQuery.status,
      startTime: listQuery.startTime,
      endTime: listQuery.endTime,
      householdType: listQuery.householdType
    }
  })
}
